package com.itheima.mp.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author author
 * @since 2023-10-23
 *  /address/testMap?name=Jack&age=18&address=shenzhen
 */
@RestController
@RequestMapping("/address")
public class AddressController {

    /**
     * http://localhost:8080/address/testMap?name=Jack&age=18&address=shenzhen
     * @param myMap
     * @return
     */
    @GetMapping("/testMap")
    public Map<String,Object> testMap(@RequestParam Map<String,Object> myMap){

        return myMap;
    }

}
